﻿@model SportsStore.WebUI.Models.ProductListViewModel

@{
    ViewBag.Title = "Products";
}

@foreach( var product in this.Model.Products )
{
       Html.RenderPartial( "ProductSummary", product );
}

<div class="pager">
    @Html.PageLinks( 
        this.Model.PagingInfo, 
        index => Url.Action( "List", new { Page = index, Category = this.Model.CurrentCategory } ) 
    )
</div>